class NumbersPrinter{
  public static void main(String[] args){
    int[] arr = new int[50];
    for(int i=0; i<50; i++){
      arr[i] = i+1;
    }
    System.out.println(avg(arr));
  }
  static double avg(int[] arr){
    if(arr.length == 0){
      return 0;
    }
    double result = 0.0;
    for(int i=0; i<arr.length; i++){
      result += arr[i];
    }
    return result/arr.length;
  }
}
